<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Commit extends AIA_Controller {

    function __construct() {
        parent::__construct();
    }

    protected function _share_friend($request) {
        $this->load->database();
        $this->load->model('Aia_model');
        $this->Aia_model->insert_share_friend($request);
        $result = array(
            'code' => 1
        );
        $this->output->set_content_type('application/json')->set_output(json_encode($result));
    }

    protected function _share_timeline($request) {
        $this->load->database();
        $this->load->model('Aia_model');
        $this->Aia_model->insert_share_timeline($request);
        $result = array(
            'code' => 1
        );
        $this->output->set_content_type('application/json')->set_output(json_encode($result));
    }

}

/* End of file index.php */
/* Location: ./application/controllers/index.php */